import {MyExclude} from "@/TS/简单/exclude";

interface TodoOmit {
  title: string
  description: string
  completed: boolean
}

type MyOmit<T, K extends keyof any> = { [key in MyExclude<keyof T, K>]: T[key] }

type TodoOmitPreview = MyOmit<TodoOmit, 'description' | 'title'>

const todoOmit: TodoOmitPreview = {
  completed:false
}
